package com.nondo.rdp.finance.model.analysis;

import com.nondo.rdp.core.domain.base.BaseEntity;
import com.nondo.rdp.core.domain.attach.Attach;
import com.nondo.rdp.auth.model.UserBeanInner;

/**
 * 金融圈-分析
 */
public class AnalysisCollectionBean extends BaseEntity {

    private Long id;    //自增ID
    private AnalysisBeanInner analysis = new AnalysisBeanInner();//分析信息
    private UserBeanInner user = new UserBeanInner();      //用户信息
    private String title; //文章标题
    private Attach image; //文章图片
    private String createdDateString;//格式化后的时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public AnalysisBeanInner getAnalysis() {
        return analysis;
    }

    public void setAnalysis(AnalysisBeanInner analysis) {
        this.analysis = analysis;
    }

    public UserBeanInner getUser() {
        return user;
    }

    public void setUser(UserBeanInner user) {
        this.user = user;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Attach getImage() {
        return image;
    }

    public void setImage(Attach image) {
        this.image = image;
    }

    public String getCreatedDateString() {
        return createdDateString;
    }

    public void setCreatedDateString(String createdDateString) {
        this.createdDateString = createdDateString;
    }

    public class AnalysisBeanInner {
        private Long id;        // 编号
        private Long commentNum; //评论数量

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public Long getCommentNum() {
            return commentNum;
        }

        public void setCommentNum(Long commentNum) {
            this.commentNum = commentNum;
        }
    }
}
